Skip to content

Fix context size configuration precedence#846

Closed
krissetto wants to merge 1 commit intodocker:mainfrom
krissetto:fix-ctx-config
Closed

Fix context size configuration precedence#846
krissetto wants to merge 1 commit intodocker:mainfrom
krissetto:fix-ctx-config

Conversation

@krissetto
Copy link
Copy Markdown
Collaborator

I'm pretty sure user configured context should always be applied over the packaged context size.

Opening as draft to make sure this aligns with the project, and because it needs further testing

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the backend configuration logic to prioritize runtime settings over model defaults, specifically for the context size. It also refines the CLI to only transmit the context size when the flag is explicitly set. A critical feedback point notes that the context size value lacks range validation before being cast to a 32-bit integer, which could result in overflow or truncation.

User configured context should always be applied over the packaged context size

Signed-off-by: Christopher Petito <chrisjpetito@gmail.com>
@krissetto
Copy link
Copy Markdown
Collaborator Author

closing in favor of #847 <3

@krissetto krissetto closed this Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant